<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>游戏返利</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript">
	   function deleteRebate(id){
		 if(confirm('确定要删除吗?'+id)){
			document.all('rebate.id').value=id;
		    document.getElementById("dform").submit();
		 }
      }
	
	</script>
	</head>

	<body>
		<table width="80%" style="border-width: 1px; border-style: solid;">
			<tr>
				<td align="center">
					游戏名称
				</td>
				<td align="center">
					投注金额
				</td>
				<td align="center">
					游戏返利
				</td>
				<td align="center">
					开始时间
				</td>
				<td align="center">
					结束时间
				</td>
				<td align="center">
					操作
				</td>
			</tr>
			<s:iterator value="pager.data">
				<tr>
					<td>
						${gameName }
					</td>
					<td>
						${amount }
					</td>
					<td>
						${rebate }‰
					</td>
					<td>
						${startTime }
					</td>
					<td>
						${endTime }
					</td>
					<td align="center">
						<a href="javascript:deleteRebate(${id})">删除</a>&nbsp;&nbsp;<a href="/newbingo/test/GameRebate_getRebateObject.action?id=${id}">修改</a>
					</td>
				</tr>
			</s:iterator>
		</table>
		<form action="/newbingo/test/GameRebate_delete.action" id="dform"
			method="post">
			<input type="hidden" name="rebate.id" />
		</form>
		<form action="/newbingo/test/GameRebate_create.action" method="post">
			<table>
				<tr>
					<td>
						游戏：
					</td>
					<td>
						<select name="gameno">
							<option value="">
								==请选择游戏==
							</option>
							<s:iterator value="gameDto">
								<option value="${gameno}">
									${gamename}
								</option>
							</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						投注金额：
					</td>
					<td>
						<input name="rebate.amount" />
					</td>
				</tr>
				<tr>
					<td>
						返利：
					</td>
					<td>
						<input name="rebate.rebate" />
					</td>
				</tr>
				<tr>
					<td>
						开始时间：
					</td>
					<td>
						<input name="rebate.startTime" />
					</td>
				</tr>
				<tr>
					<td>
						结束时间：
					</td>
					<td>
						<input name="rebate.endTime" />
					</td>
				</tr>
			</table>
			<input type="submit" value="提 交" />
		</form>
	</body>
</html>
